{% form_theme form 'ZaysoAreaBundle:Form:fields.html.twig' %}

{% extends 'ZaysoAreaBundle:Layout:layout.html.twig' %}

{% block title %}Area - Account - Edit{% endblock %}

{% block content %}
<div>
<form action="{{ path('zayso_area_admin_account_edit', { 'id': id }) }}" method="post" {{ form_enctype(form) }}>
<input type="hidden" name="project_id" value="52" />
<table border="1" style="width: 800px;">
<tr><th colspan="3">Area 5CF Admin Edit Account {{ id }}</th></tr>
<tr>
    <td style="width: 175px;">{{ form_label (form.userName) }}</td>
    <td style="width: 275px;">{{ form_widget(form.userName) }}</td>
    <td style="width: 350px;">
        Required.<br />
         {{ form_errors(form.userName) }}
    </td>
</tr>
<tr>
    <td>{{ form_label (form.userPass1) }}</td>
    <td>{{ form_widget(form.userPass1) }}</td>
    <td>
        Only to change.<br />
        {{ form_errors(form.userPass1) }}
    </td>
</tr>
<tr>
    <td>{{ form_label (form.userPass2) }}</td>
    <td>{{ form_widget(form.userPass2) }}</td>
    <td>
        Only to change.<br />
        {{ form_errors(form.userPass2) }}
    </td>
</tr>
<tr><td colspan="3"></td>
<tr>
<tr>
    <td> {{ form_label (form.aysoid) }}</td>
    <td> {{ form_widget(form.aysoid) }}</td>
    <td>
        Be careful about changing!<br />
        {{ form_errors(form.aysoid) }}
    </td>
</tr>
<tr>
    <td> {{ form_label (form.firstName) }}</td>
    <td> {{ form_widget(form.firstName) }}</td>
    <td>
        Legal name, must match eAYSO.<br />
        {{ form_errors(form.firstName) }}
    </td>
</tr>
<tr>
    <td> {{ form_label (form.lastName) }}</td>
    <td> {{ form_widget(form.lastName) }}</td>
    <td>
        Legal name, must match eAYSO.<br />
        {{ form_errors(form.lastName) }}
    </td>
</tr>
<tr>
    <td> {{ form_label (form.nickName) }}</td>
    <td> {{ form_widget(form.nickName) }}</td>
    <td>
        Will be used for assignments.<br />
        {{ form_errors(form.nickName) }}
    </td>
</tr>
<tr>
    <td> {{ form_label (form.email) }}</td>
    <td> {{ form_widget(form.email) }}</td>
    <td>
        Required.<br />
        {{ form_errors(form.email) }}
    </td>
</tr>
<tr>
    <td> {{ form_label (form.cellPhone) }}</td>
    <td> {{ form_widget(form.cellPhone) }}</td>
    <td>
        Highly recommended.<br />
        {{ form_errors(form.cellPhone) }}
    </td>
</tr>
<tr>
    <td> {{ form_label (form.gender) }}</td>
    <td> {{ form_widget(form.gender) }}</td>
    <td>
        {{ form_errors(form.gender) }}
    </td>
</tr>
<tr>
    <td> {{ form_label (form.dob) }}</td>
    <td> {{ form_widget(form.dob) }}</td>
    <td>
        {{ form_errors(form.dob) }}
    </td>
</tr>
<tr><td colspan="3"></td></tr>
<tr>
    <td> {{ form_label (form.region) }}</td>
    <td> {{ form_widget(form.region) }}</td>
    <td>
        Required.<br />
        {{ form_errors(form.region) }}
    </td>
</tr>
<tr>
    <td> {{ form_label (form.memYear) }}</td>
    <td> {{ form_widget(form.memYear) }}</td>
    <td>
        {{ form_errors(form.memYear) }}
    </td>
</tr>
<tr>
    <td> {{ form_label (form.refBadge) }}</td>
    <td> {{ form_widget(form.refBadge) }}</td>
    <td>
        {{ form_errors(form.refBadge) }}
    </td>
</tr>
<tr>
    <td> {{ form_label (form.refDate) }}</td>
    <td> {{ form_widget(form.refDate) }}</td>
    <td>
        {{ form_errors(form.refDate) }}
    </td>
</tr>
<tr>
    <td> {{ form_label (form.safeHaven) }}</td>
    <td> {{ form_widget(form.safeHaven) }}</td>
    <td>
        {{ form_errors(form.safeHaven) }}
    </td>
</tr>
<tr>
  <td><a href="{{ path('zayso_area_admin_account_list') }}#account-list-{{ id }}">Accounts</a></td>
  <td>&nbsp;</td>
  <td align="center"><input type="submit" name="accountEditSubmit" value="Update Account" />
</tr>
<tr><td colspan="3">{{ form_errors(form) }}</td></tr>
</table>
{{ form_rest(form) }}
</form>
<br />
</div>


{% endblock %}
